//
//  CHBHomeTableViewController.swift
//  weibo.chb
//
//  Created by 褚红彪 on 16/1/19.
//  Copyright © 2016年 chuhongbiao. All rights reserved.
//

import UIKit

class CHBHomeTableViewController: CHBVistorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        if !userLogin{
            vistorView!.setVistor(nil, title: nil)
        }else{
            setupUI()
        }
    }
    func setupUI(){
        navigationItem.leftBarButtonItem = UIBarButtonItem.init(imgName: "navigationbar_friendsearch", target: self, action: "leftBtnClick")
        navigationItem.rightBarButtonItem = UIBarButtonItem.init(imgName: "navigationbar_pop", target: self, action: "rightBtnClick")
    }
    @objc private func leftBtnClick(){
        let vc = CHBTempViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
    @objc private func rightBtnClick(){
        print(__LINE__)
        print(__FUNCTION__)
        print(__FILE__)
    }
}
